Wikipedia:Bots/Requests for approval/PkbwcgsBot 25
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Denied.
Operator: Pkbwcgs (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:45, Friday, January 10, 2020 (UTC)
Function overview: The bot is going to substitute the templates listed at Wikipedia:Templates_for_discussion/Log/2019_December_20#Template:WikiProject_24 into Template:WikiProject Television and remove any duplicates.
Automatic, Supervised, or Manual: Supervised
Programming language(s): AWB
Source code available: AWB
Links to relevant discussions (where appropriate): Wikipedia:Templates_for_discussion/Log/2019_December_20#Template:WikiProject_24
Edit period(s): One-time run
Estimated number of pages affected: 5000-15,000
Namespace(s): All namespaces
Exclusion compliant (Yes/No): For this specific task, no
Function details: The bot is going to convert the use of the templates at Wikipedia:Templates_for_discussion/Log/2019_December_20#Template:WikiProject_24 before deletion. An example of conversion is shown here. The bot is going to remove the transclusions of the WikiProject templates that were listed at Wikipedia:Templates_for_discussion/Log/2019_December_20#Template:WikiProject_24 and convert them to be used as wrappers. This is a bit of a complex task so I may need a bit of assistance but I am willing to take on this task as it needs to be done. The templates have been merged by User:Gonnym at this edit. For this task specifically, the bot will not be exclusion compliant.
Discussion
[edit]- I have PearBOT 4 with approval for this type of task and could do it if you want. I'm quite busy currently, but should hopefully be able to get it done next week if you want me to. ‑‑Trialpears (talk) 23:28, 10 January 2020 (UTC)[reply]
- @Trialpears: I may need some help on working out what regular expressions are the best to use. Pkbwcgs (talk) 10:29, 11 January 2020 (UTC)[reply]
- The regex for Template:WikiProject 24 is as follows:
- @Trialpears: I may need some help on working out what regular expressions are the best to use. Pkbwcgs (talk) 10:29, 11 January 2020 (UTC)[reply]
Find:
({{WikiProject television[^}]*)((a|[^a])*)({{WikiProject 24[^}]*\|class=|importance=)([^}|=]*)([^}]*}})
Replace:
$1|24-task=yes|24-importance=$5$2
Find:
({{WikiProject Television[^}]*)((a|[^a])*)({{WikiProject 24[^}]*\|class=|importance=)([^}|=]*)([^}]*}}
Replace:
$3$5|24-task=yes|24-importance=$2
It works but it does the wrong thing because it removes parameters from Template:WikiProject United States rather than Template:WikiProject 24. Pkbwcgs (talk) 10:44, 11 January 2020 (UTC)[reply]
- It looks like PearBOT II from User:Trialpears has converted the templates to wrappers already. However, I will keep this BRFA open so that I can get approval to convert more templates to wrappers in talk pages in the future. Pkbwcgs (talk) 11:24, 12 January 2020 (UTC)[reply]
- I only took care of the wire and started x-files. The rest was PrimeBOT. ‑‑Trialpears (talk) 14:05, 12 January 2020 (UTC)[reply]
Denied. Already taken care of by other bots. Primefac (talk) 02:16, 22 January 2020 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.